<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
         <script src="../js/vue.js"></script>
    </head>
    <body>
        <div id="container">
            用户名:<input type="text" /><span v-html="info"></span>
        </div>
        
        <script>
           // console.log(Vue.config)
           var app= new Vue({
                el:"#container",
                data:{
                   info:"<font color='red'>用户名不能为空</font>"
                }
            });
            
            //模拟异步操作 
            setTimeout(function(){
                app.name="异常请求后台数据";
            },3000)
        </script>
    </body>
</html>
